﻿namespace Common.Localization
{
    public enum Language { Ua, Ru, En}

    public static class LocalizationProvider
    {
        public static Language Language { get; set; }

        public static string GetMessage(string key)
        {
            switch (LocalizationProvider.Language)
            {
                case Language.En:
                    return Resources.ResEN.ResourceManager.GetString(key);
                case Language.Ua:
                    return Resources.ResUA.ResourceManager.GetString(key);
                case Language.Ru:
                    return Resources.ResRU.ResourceManager.GetString(key);
            }

            return key;
        }
    }
}
